@var current=page.pageNumber;var n=page.pageNumber-1;var begin=n-n%5+1; var end=6;
@if(page.pages-begin<=5){end=page.pages; }else{end=begin+5;}


<div class="row">
	<div class="col-sm-6">
		<input type="hidden" id="pageNum" name="pageNumber"  />	
		<div class="dataTables_info" id="DataTables_Table_0_info" role="alert" aria-live="polite" aria-relevant="all">
			共 ${page.total} 条记录 / 共 ${page.pages}页
		</div>
	</div>
	<div class="col-sm-6">
	<div class="dataTables_paginate paging_simple_numbers" >
		<ul class="pagination">
			
			@if(current <= 1){
				<li class="paginate_button previous disabled page" aria-controls="DataTables_Table_0" tabindex="0" tag="1"><a href="#">上一页</a></li>
			@}else{
				<li class="paginate_button previous page" aria-controls="DataTables_Table_0" tabindex="0" tag="${current-1}"><a href="#">上一页</a></li>
			@}
			
			@for(var i=begin;i<=end;i++){
				@if(i==current){
					<li class="paginate_button active page" aria-controls="DataTables_Table_0" tabindex="0" tag="${i}"><a href="#">${i}</a></li>
				@}else{
					<li class="paginate_button page" aria-controls="DataTables_Table_0" tabindex="0" tag="${i}"><a href="#">${i}</a></li>
				@}
				
			@}	
			
			@if(current>=page.pages){
				<li class="paginate_button previous disabled page" aria-controls="DataTables_Table_0" tabindex="0" tag="${page.pages}"><a href="#">下一页</a></li>
			@}else{
				<li class="paginate_button previous page" aria-controls="DataTables_Table_0" tabindex="0" tag="${current+1}"><a href="#">下一页</a></li>
			@}
			
				
		</ul>
		
	</div>
</div>
</div>
